package com.yykj.drup.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yykj.drup.server.dto.PrescriptionStoreProductDto;
import com.yykj.drup.server.model.OrderDetails;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zengg
 * @since 2022-03-22
 */
public interface OrderDetailsService extends IService<OrderDetails> {

    /**
     * 插入订单药店药品信息
     * @param orderId
     * @param orderDetails
     * @return
     */
    Boolean insertOrderDetails(Integer orderId, List<OrderDetails> orderDetails);

    /**
     * 初始化订单详情信息
     * @param prescriptionStoreProductDto
     * @return
     */
    List<OrderDetails> orderDetailsInit(PrescriptionStoreProductDto prescriptionStoreProductDto);

    /**
     * 获取订单药品信息
     * @param orderId 订单ID
     * @return
     */
    List<OrderDetails> findOrderDetailsByOrderId(Integer orderId);
}
